<?php
class a{
    public $c;
    function d(){
        call_user_func($this->c, $this);
    }
}

$aa = new a();
$aa->c = function(){
    echo 'xx';
};
$aa->d();